import React from 'react'
import { Tabs } from 'antd';
import CustmerSth from './CustmerSth';
import OperatorSth from './OperatorSth';
import RiskControl from './RiskControl';
import TrustDgree from './TrustDgree';
import HistoryMoney from './HistoryMoney';

const { TabPane } = Tabs;

export default function Tab(props) {
    

    const callback = (key) => {
        console.log(key);
    }


    const Demo = () => (
        <Tabs defaultActiveKey="1" onChange={callback}>
            <TabPane tab="客户资料" key="1">
                <CustmerSth  />
            </TabPane>
            <TabPane tab="运营商信息" key="2">
                <OperatorSth />
            </TabPane>
            <TabPane tab="风控报告" key="3">
                <RiskControl />
            </TabPane>
            <TabPane tab="聚信立" key="4">
                <TrustDgree />
            </TabPane>
            <TabPane tab="历史借款" key="5">
                <HistoryMoney />
            </TabPane>
        </Tabs>
    );
    return (
        <div>
            <Demo />
        </div>
    )
}
